<?php
/**
 * Parameters:
 * @param $form AboutMeForm
 */
?>
<form action="<?php echo url_for('procedure_1_about_me_to_2_participants') ?>" method="post" id="procedure1AboutMe">
	<?php echo $form->renderHiddenFields();?>
	<div id="sheet">
		<img alt="Briefkopf" id="briefkopf" src="<?php echo image_path('briefkopf.png', true)?>" />
		<h1>Bundeslager-Anmeldung</h1>
		<div id="fortschritt">
			<span>&Uuml;ber Dich</span>
			<span class="pfeil_inaktiv"></span>
			<span class="pfeil_inaktiv"></span>
			<span class="pfeil_inaktiv"></span>
		</div>
		<p>Im ersten Schritt wollen wir mehr &uuml;ber Dich wissen. F&uuml;lle bitte dazu das Formular <strong>vollst&auml;ndig</strong> aus.</p>
		<?php if($form->hasGlobalErrors()):?>
		<?php foreach($form->getGlobalErrors() as $error):?>
		<p><span class="error"><?php echo $error?></span></p>
		<?php endforeach;?>
		<?php endif;?>
		<table class="formular">
			<colgroup>
				<col width="250">
				<col width="210">
				<col width="190">
			</colgroup>
			<tbody>
				<tr>
					<td><?php echo $form['first_name']->renderLabel('Vorname');?></td>
					<td><?php echo $form['first_name']->render();?>
					<td><?php if($form['first_name']->hasError()):?>
						<span class="error"><?php echo $form['first_name']->getError()?></span>
					<?php endif;?></td>
					</td>
				</tr>
				<tr>
					<td><?php echo $form['last_name']->renderLabel('Nachname');?></td>
					<td><?php echo $form['last_name']->render();?>
					<td><?php if($form['last_name']->hasError()):?>
						<span class="error"><?php echo $form['last_name']->getError()?></span>
					<?php endif;?></td>
					</td>
				</tr>
				<tr>
					<td><?php echo $form['chapter']->renderLabel('Stamm');?></td>
					<td><?php echo $form['chapter']->render();?>
					<td><?php if($form['chapter']->hasError()):?>
						<span class="error"><?php echo $form['chapter']->getError()?></span>
					<?php endif;?></td>
					</td>
				</tr>
				<tr>
					<td><?php echo $form['state_association']->renderLabel('Landesverband / Bundesland');?></td>
					<td><?php echo $form['state_association']->render();?>
					<td><?php if($form['state_association']->hasError()):?>
						<span class="error"><?php echo $form['state_association']->getError()?></span>
					<?php endif;?></td>
					</td>
				</tr>
				<tr>
					<td><?php echo $form['invoice_street']->renderLabel('Rechnungsadresse: Straße');?></td>
					<td><?php echo $form['invoice_street']->render();?>
					<td><?php if($form['invoice_street']->hasError()):?>
						<span class="error"><?php echo $form['invoice_street']->getError()?></span>
					<?php endif;?></td>
					</td>
				</tr>
				<tr>
					<td><?php echo $form['invoice_zip_code']->renderLabel('Rechnungsadresse: Postleitzahl');?></td>
					<td><?php echo $form['invoice_zip_code']->render();?>
					<td><?php if($form['invoice_zip_code']->hasError()):?>
						<span class="error"><?php echo $form['invoice_zip_code']->getError()?></span>
					<?php endif;?></td>
					</td>
				</tr>
				<tr>
					<td><?php echo $form['invoice_city']->renderLabel('Rechnungsadresse: Ort');?></td>
					<td><?php echo $form['invoice_city']->render();?>
					<td><?php if($form['invoice_city']->hasError()):?>
						<span class="error"><?php echo $form['invoice_city']->getError()?></span>
					<?php endif;?></td>
					</td>
				</tr>
				<tr>
					<td><?php echo $form['contact_phone_number']->renderLabel('Kontakt: Telefon-Nummer');?></td>
					<td><?php echo $form['contact_phone_number']->render();?>
					<td><?php if($form['contact_phone_number']->hasError()):?>
						<span class="error"><?php echo $form['contact_phone_number']->getError()?></span>
					<?php endif;?></td>
					</td>
				</tr>
				<tr>
					<td><?php echo $form['contact_mobile_number']->renderLabel('Kontakt: Handy-Nummer');?></td>
					<td><?php echo $form['contact_mobile_number']->render();?>
					<td><?php if($form['contact_mobile_number']->hasError()):?>
						<span class="error"><?php echo $form['contact_mobile_number']->getError()?></span>
					<?php endif;?></td>
					</td>
				</tr>
				<tr>
					<td><?php echo $form['email_address']->renderLabel('Kontakt: eMail-Adresse');?></td>
					<td><?php echo $form['email_address']->render();?>
					<td><?php if($form['email_address']->hasError()):?>
						<span class="error"><?php echo $form['email_address']->getError()?></span>
					<?php endif;?></td>
					</td>
				</tr>
				<tr>
					<td><?php echo $form['is_participant']->renderLabel('Du selbst nimmst ...');?></td>
					<td><?php echo $form['is_participant']->render();?>
					<td><?php if($form['is_participant']->hasError()):?>
						<span class="error"><?php echo $form['is_participant']->getError()?></span>
					<?php endif;?></td>
					</td>
				</tr>
			</tbody>
		</table>
		<p>Diese Daten sowie Deine Teilnahme lassen sich nat&uuml;rlich im Nachhinein noch ver&auml;ndern.</p>
		<div id="footer">Stimmt alles? Dann <input type="submit" value="weiter! &raquo;" /></div>
	</div>
</form>